#pragma once
namespace NBE
{
	//remember define your own 
	enum ERRORCODE
	{
		RenderSysError = 0,

		CharToWcharOverFlow = 50,

		CantFindConfigItem = 100,

		ReadFileError = 150,

		CantGetFuncInDll = 200,

		CreateWindowError = 250,

		TextureDevilError = 300,

		VertexShaderError = 350,
		PixelShaderError,
		LinkShaderError

	};

	class NBEException
	{
	public:
		NBEException(int errorCode):m_errorCode(errorCode)
		{}
		int ErrorCode(){return m_errorCode;}
	private:
		int m_errorCode;
	};
}